package com.atguigu.mybatis.dao;

import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.atguigu.mybatis.beans.Employee;

public interface EmployeeMapper {
	
	//定义 CRUD 相关的方法
	
	//根据id查询Employee
	public Employee getEmployeeById(Integer id );
	
	//添加一个新的Employee
	public void addEmployee(Employee employee);
	
	//修改一个Employee
	public void updateEmployee(Employee employee);
	
	//删除一个Employee
	public Boolean   deleteEmployeeById(Integer id );
	
	public Employee  getEmployeeByIdAndLastName(@Param("id")Integer id, 
												@Param("lastName")String lastName);
	
	public Employee getEmployeeByMap(Map<String,Object> map);
	
}
